Skip to content

Feat/g UI optimalisering - #11

Merged
11cookies11 merged 15 commits into
mainfrom
feat/GUI-optimalisering
Mar 8, 2026
Merged

Feat/g UI optimalisering#11
11cookies11 merged 15 commits into
mainfrom
feat/GUI-optimalisering

Conversation

@11cookies11

Copy link
Copy Markdown
Owner

No description provided.

…ebar panels

[中文]
- 变更内容:
  - 新增 WebEngine 渲染进程异常监听,出现黑屏类崩溃时自动以安全渲染参数重启一次(GPU 降级)
  - 启动日志增加 WebEngine flags 输出,便于排障
  - 删除自动脚本页“变量监控”卡片(含无用绑定清理)
  - 删除侧边栏底部 DevUser_01/管理员工作区展示块
  - 更新 where 进度文件
- 影响范围:
  - app/main_web.py
  - ui/desktop/web_window.py
  - ui/frontend/src/components/ScriptsView.vue
  - ui/frontend/src/App.vue
  - .where-agent-progress.md
- 兼容性/行为变化:
  - UI 布局变化:脚本页不再显示变量监控卡片,侧边栏不再显示开发者用户块
  - 运行行为增强:WebEngine 渲染进程异常时自动触发一次安全模式重启
- 依赖/环境:
  - 无新增依赖;可通过环境变量 PROTOFLOW_DISABLE_GPU_RECOVERY=1 禁用自动恢复
- 验证:
  - 代码语法检查通过:python -m py_compile app/main_web.py ui/desktop/web_window.py
  - 手工检查差异:仅包含上述文件改动

[English]
- Changes:
  - Added WebEngine render-process termination handling and one-time auto-restart with safe rendering flags (GPU fallback) for blackscreen-class failures.
  - Added startup logging of effective WebEngine flags for troubleshooting.
  - Removed the Script page "Variable Monitor" card and cleaned unused bindings.
  - Removed the sidebar bottom DevUser_01/workspace block.
  - Updated where progress file.
- Impact:
  - app/main_web.py
  - ui/desktop/web_window.py
  - ui/frontend/src/components/ScriptsView.vue
  - ui/frontend/src/App.vue
  - .where-agent-progress.md
- Compatibility/Behavior changes:
  - UI layout update: Script page no longer shows the variable monitor card; sidebar no longer shows the developer user block.
  - Runtime resilience update: app performs one-time safe-mode restart when WebEngine render process terminates.
- Dependencies/Environment:
  - No new dependencies; auto recovery can be disabled via PROTOFLOW_DISABLE_GPU_RECOVERY=1.
- Verification:
  - Syntax check passed: python -m py_compile app/main_web.py ui/desktop/web_window.py
  - Manual diff review confirms scope-limited file changes.

Refs:
- N/A
…ripts layout

[中文]
- 变更内容:
  - 设置页插件区域改为真实数据接入:新增后端桥接插件列表接口,前端支持刷新并展示真实插件项
  - 设置页新增协议包列表展示(接入 list_protocols),与插件列表同页可见
  - 为插件/协议包列表增加筛选能力(状态/类别)
  - 修复设置页目录区域布局问题(工作目录/插件目录展示与按钮对齐)
  - 删除脚本页变量监控后,补齐右侧布局填充,避免大面积留白
  - 保留并提交此前 WebEngine 黑屏自动恢复与日志增强改动
  - 更新 where 进度文件
- 影响范围:
  - app/main_web.py
  - ui/desktop/web_window.py
  - ui/desktop/web_bridge.py
  - ui/frontend/src/App.vue
  - ui/frontend/src/components/SettingsPanels.vue
  - ui/frontend/src/composables/useBridgeBootstrap.ts
  - ui/frontend/src/composables/useBridgeBootstrap.test.ts
  - ui/frontend/src/style.css
  - .where-agent-progress.md
- 兼容性/行为变化:
  - 设置页由静态示例展示改为真实插件/协议包数据展示
  - UI 布局有调整(目录区、脚本页右侧、筛选条)
  - WebEngine 异常时触发一次安全模式自动重启(可通过环境变量关闭)
- 依赖/环境:
  - 无新增依赖
  - 可选环境变量:PROTOFLOW_DISABLE_GPU_RECOVERY=1
- 验证:
  - 前端测试通过:
    - npm test -- --run src/composables/useBridgeBootstrap.test.ts src/components/SettingsPanels.test.ts
    - npm test -- --run src/components/SettingsPanels.test.ts
  - Python 语法检查通过:
    - python -m py_compile app/main_web.py ui/desktop/web_window.py ui/desktop/web_bridge.py app/plugin_manager.py

[English]
- Changes:
  - Reworked Settings plugin section to use real runtime data via new backend bridge plugin-list API; frontend refresh now renders actual plugin entries.
  - Added protocol-package list rendering in Settings (wired to list_protocols) so plugins and protocol packages are both visible.
  - Added filtering for plugin/protocol lists (status/category).
  - Fixed Settings directory-area layout (workspace/plugin directory alignment and controls).
  - Filled right-side Scripts layout after removing variable monitor to avoid large blank area.
  - Kept and included prior WebEngine blackscreen auto-recovery and startup flag logging changes.
  - Updated where progress file.
- Impact:
  - app/main_web.py
  - ui/desktop/web_window.py
  - ui/desktop/web_bridge.py
  - ui/frontend/src/App.vue
  - ui/frontend/src/components/SettingsPanels.vue
  - ui/frontend/src/composables/useBridgeBootstrap.ts
  - ui/frontend/src/composables/useBridgeBootstrap.test.ts
  - ui/frontend/src/style.css
  - .where-agent-progress.md
- Compatibility/Behavior changes:
  - Settings view now shows real plugin/protocol-package data instead of static placeholders.
  - UI layout updates in directory section, scripts right column, and list filter bars.
  - One-time safe-mode restart is triggered on WebEngine render-process termination (configurable).
- Dependencies/Environment:
  - No new dependencies.
  - Optional env var: PROTOFLOW_DISABLE_GPU_RECOVERY=1
- Verification:
  - Frontend tests passed:
    - npm test -- --run src/composables/useBridgeBootstrap.test.ts src/components/SettingsPanels.test.ts
    - npm test -- --run src/components/SettingsPanels.test.ts
  - Python syntax checks passed:
    - python -m py_compile app/main_web.py ui/desktop/web_window.py ui/desktop/web_bridge.py app/plugin_manager.py

Refs:
- N/A
English summary:
- Unify installer/frontend square logo assets to prevent taskbar icon clipping.
- Keep icon rendering consistent across runtime and packaged app.

中文摘要:
- 统一安装器与前端方形图标资源,修复任务栏图标裁切。
- 保持运行态和安装后图标显示一致。
English summary:
- Improve i18n mapping in App and settings panels.
- Refine settings layout/styles for clearer hierarchy and consistent controls.

中文摘要:
- 优化 App 与设置面板的 i18n 映射。
- 调整设置页样式层级与控件风格一致性。
…iews

English summary:
- Unify visual rules for buttons/tabs/segmented controls/inputs/filters.
- Apply shared theme tokens to improve consistency in settings and manual views.

中文摘要:
- 统一按钮、Tab、分段器、输入框和筛选控件视觉规则。
- 通过共享主题变量提升设置页与手动脚本页一致性。
English summary:
- Fix startup white-screen risk caused by unsafe locale resolution.
- Use deterministic locale fallback mapping for stable app boot.

中文摘要:
- 修复不安全语言映射导致的启动白屏风险。
- 使用确定性的回退映射保障应用稳定启动。
English summary:
- Remove bright mismatch in dark-mode header/title area.
- Improve spacing between protocol tabs and card sections.

中文摘要:
- 修复深色主题下头部区域的亮色违和问题。
- 优化协议页标签与卡片区域间距。
English summary:
- Restore actual locale mapping instead of forced global en-US fallback.
- Add explicit locale imports to prevent runtime reference errors.

中文摘要:
- 恢复真实语言映射,不再全局强制回退到 en-US。
- 补齐显式语言包导入,避免运行时引用错误。
English summary:
- Unify Windows app identity (AppUserModelID) across runtime and installer shortcuts.
- Align icon chain for desktop runtime, installer assets, and frontend favicon.
- Refresh Windows build script to regenerate icons before packaging.

中文摘要:
- 统一运行态与安装器快捷方式的 Windows 应用身份(AppUserModelID)。
- 对齐桌面运行时、安装器与前端 favicon 的图标链路。
- 更新 Windows 构建脚本,打包前自动刷新图标资源。
English summary:
- Restore settings-page polish while keeping recent fixes, including spacing adjustments and cleanup of duplicate account/logo elements.
- Move docs entry to settings header and route it to local manual first with external fallback.
- Keep desktop/web consistency by updating bundled ui/assets/web build output.

中文摘要:
- 在保留近期修复的基础上,恢复设置页样式优化,调整间距并清理重复账户区和重复 logo 元素。
- 文档入口统一放到设置页头,优先打开本地手册,找不到再回退到在线链接。
- 同步更新 ui/assets/web 前端构建产物,保证桌面运行与打包资源一致。
English summary:
Restore dynamic plugin/protocol lists in Settings Plugins with refresh and filters.
Rewire settings docs button to local-first manual opening and keep polished spacing.

中文摘要:
恢复设置/插件的动态插件与协议列表(含刷新与筛选)。
恢复设置页文档中心本地优先打开,并修复间距与重复标题栏图标。
English summary:
- Fix split-artifact drift by rebuilding frontend and syncing ui/frontend/dist to ui/assets/web.
- Restore plugin listing bridge flow (plugin manager pass-through + list_plugins/refresh_plugins).
- Fix docs button text key and harden i18n fallback to avoid icon-only blank labels.

中文摘要:
- 修复前端拆分产物不同步:重新构建并同步 ui/frontend/dist 到 ui/assets/web。
- 恢复插件列表桥接链路(传入 plugin_manager + 补齐 list_plugins/refresh_plugins)。
- 修复文档按钮文案 key,并增强 i18n 回退,避免只显示图标无文字。
English summary:
- Increase vertical spacing between filter chips and card list in Settings > Plugins.
- Apply the same spacing rule to both plugin and protocol sections for consistent layout.

中文摘要:
- 增大 设置>插件 页面中筛选胶囊与列表卡片之间的垂直间距。
- 对插件区与协议包区统一应用该间距规则,保持版式一致。
English summary:
- Reduce maximize/fullscreen black-frame risk by deferring WebView stabilization during window state transitions.
- Replace aggressive resize-triggered repaint with lightweight update after transition settles.
- Add guarded scheduling to avoid repeated refreshes in unstable transition window.

中文摘要:
- 在窗口状态切换期间延迟 WebView 稳定刷新,降低最大化/全屏黑屏风险。
- 将激进的 resize 重绘改为状态稳定后的轻量 update。
- 增加过渡期保护调度,避免不稳定阶段重复刷新。
English summary:
- Add a dedicated i18n manual set under docs/i18n-manual with per-locale pages.
- Add cross-language navigation links on each language page for quick switching.
- Add i18n manual index links to USER_GUIDE (ZH/EN).

中文摘要:
- 新增 docs/i18n-manual 多语言说明书,按语言分别提供文档页。
- 每个语言页都加入跨语言跳转索引,便于互相检索切换。
- 在中英文用户手册中补充 i18n 说明书入口链接。
@11cookies11
11cookies11 merged commit c32c4c1 into main Mar 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant